import { loginState, systemModule, dashboardModule } from './modules/types'
export interface RootState {
  name: string
  entireDepartment: any[]
  entireRole: any[]
  entireMenu: any[]
}
export interface RootWithModule {
  login: loginState
  system: systemModule
  dashboard: dashboardModule
}

// 交叉类型，为了能使store.state.login实现推断
export type IStoreType = RootState & RootWithModule
